<script setup lang="ts">

import SlotUse from '@views/basic/SlotUse.vue'
</script>

<template>
  <div class="card-box">
    <div class="card-title">slot:子组件给父组件传值。</div>
    <SlotUse>
      <template v-slot="scope">
        {{ scope }}
        <div>姓名：{{ scope.row.name }}</div>
        <div>年龄：{{ scope.row.age }}</div>
        <div>性别：{{ scope.row.sex }}</div>
      </template>
    </SlotUse>
  </div>

</template>

<style scoped>

</style>
